package com.andyage.admin.action;

import java.io.IOException;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.andyage.admin.service.ISendSMSService;
import com.andyage.util.MyConfig;
import com.andyage.util.SMSServerIhuyi;

import net.sf.json.JSONObject;

/**
 * 发送短信的请求
 * @author john
 *
 */
@Controller
@RequestMapping("/admin")
public class SendSMSAction {
	@Resource
	private ISendSMSService isendSMSService;
	@RequestMapping("/sendChoujiangSMS")
	public void sendChoujiangSMS(HttpServletRequest request,HttpServletResponse response) {
		try {
			isendSMSService.sendChoujiangSMS(request, response);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
